package microservicedemo.userservice.mapper;

import microservicedemo.userservice.po.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

public interface UserMapper {

    @Select("select id from user where username=#{username} and password=#{password}")
    Integer login(User user);

    @Insert("insert into user(username,password) values(#{username},#{password}) ")
    void register(User user);
}
